package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @author stone
 * @description 针对表【ad_sensitive(敏感词信息表)】的数据库操作Service
 * @createDate 2023-02-22 10:27:50
 */
public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 敏感词查询
     *
     * @param dto
     * @return
     */
    ResponseResult findAllSensitives(SensitiveDTO dto);

    /**
     * 敏感词添加
     *
     * @param sensitiveDTO
     * @return
     */
    ResponseResult saveSensitives(SensitiveDTO sensitiveDTO);

    /**
     * 敏感词修改
     *
     * @param sensitiveDTO
     * @return
     */
    ResponseResult updateSensitives(SensitiveDTO sensitiveDTO);

    /**
     * 敏感词删除
     *
     * @param id
     * @return
     */
    ResponseResult deleteSensitives(Integer id);
}
